Optimal. Leaf size=147 \[ -\frac{(B+i A) (c-i d) \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (e+f x)}}{\sqrt{2} \sqrt{a}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{(-B+i A) (c+i d)}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{A (d+i c)+B (c+3 i d)}{2 a f \sqrt{a+i a \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.295479, antiderivative size = 147, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {3590, 3526, 3480, 206} \[ -\frac{(B+i A) (c-i d) \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (e+f x)}}{\sqrt{2} \sqrt{a}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{(-B+i A) (c+i d)}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{A (d+i c)+B (c+3 i d)}{2 a f \sqrt{a+i a \tan (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3590
Rule 3526
Rule 3480
Rule 206
Rubi steps
\begin{align*} \int \frac{(A+B \tan (e+f x)) (c+d \tan (e+f x))}{(a+i a \tan (e+f x))^{3/2}} \, dx &=\frac{(i A-B) (c+i d)}{3 f (a+i a \tan (e+f x))^{3/2}}-\frac{i \int \frac{a (B (c+i d)+A (i c+d))+2 a B d \tan (e+f x)}{\sqrt{a+i a \tan (e+f x)}} \, dx}{2 a^2}\\ &=\frac{(i A-B) (c+i d)}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{B (c+3 i d)+A (i c+d)}{2 a f \sqrt{a+i a \tan (e+f x)}}+\frac{((A-i B) (c-i d)) \int \sqrt{a+i a \tan (e+f x)} \, dx}{4 a^2}\\ &=\frac{(i A-B) (c+i d)}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{B (c+3 i d)+A (i c+d)}{2 a f \sqrt{a+i a \tan (e+f x)}}-\frac{(i (A-i B) (c-i d)) \operatorname{Subst}\left (\int \frac{1}{2 a-x^2} \, dx,x,\sqrt{a+i a \tan (e+f x)}\right )}{2 a f}\\ &=-\frac{(i A+B) (c-i d) \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (e+f x)}}{\sqrt{2} \sqrt{a}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{(i A-B) (c+i d)}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{B (c+3 i d)+A (i c+d)}{2 a f \sqrt{a+i a \tan (e+f x)}}\\ \end{align*}
Mathematica [A] time = 5.31034, size = 206, normalized size = 1.4 \[ \frac{(A+B \tan (e+f x)) (c+d \tan (e+f x)) \left (\frac{2}{3} \cos (e+f x) ((A (d+5 i c)+B (c+7 i d)) \cos (e+f x)-3 (A c-i A d-i B c+3 B d) \sin (e+f x))-i (A-i B) (c-i d) e^{i (e+f x)} \sqrt{1+e^{2 i (e+f x)}} \sinh ^{-1}\left (e^{i (e+f x)}\right )\right )}{4 f (a+i a \tan (e+f x))^{3/2} (A \cos (e+f x)+B \sin (e+f x)) (c \cos (e+f x)+d \sin (e+f x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.074, size = 131, normalized size = 0.9 \begin{align*}{\frac{-2\,i}{af} \left ( -{ \left ( -{\frac{i}{4}}Ad-{\frac{i}{4}}Bc+{\frac{Ac}{4}}+{\frac{3\,Bd}{4}} \right ){\frac{1}{\sqrt{a+ia\tan \left ( fx+e \right ) }}}}-{\frac{a \left ( -Bd+iAd+iBc+Ac \right ) }{6} \left ( a+ia\tan \left ( fx+e \right ) \right ) ^{-{\frac{3}{2}}}}-{\frac{\sqrt{2}}{2} \left ({\frac{i}{4}}Ad+{\frac{i}{4}}Bc-{\frac{Ac}{4}}+{\frac{Bd}{4}} \right ){\it Artanh} \left ({\frac{\sqrt{2}}{2}\sqrt{a+ia\tan \left ( fx+e \right ) }{\frac{1}{\sqrt{a}}}} \right ){\frac{1}{\sqrt{a}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.74103, size = 1629, normalized size = 11.08 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \tan \left (f x + e\right ) + A\right )}{\left (d \tan \left (f x + e\right ) + c\right )}}{{\left (i \, a \tan \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]